package util;

import org.springframework.context.ApplicationContext;

public class ApplicationContextUtil {
	public static ApplicationContext applicationContext = null;
	
	public static Object getBean(String bean){
		if(applicationContext!=null){
			return applicationContext.getBean(bean);
		}
		return null;
	}
}
